package mytext;

import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Random;
import java.util.Set;

public class Mytext {

	public static void main(String[] args) {
		
		ArrayList<Integer> mylist=new ArrayList<Integer>();
		Random r=new Random();
		while(mylist.size()<10) {
			int ran=r.nextInt(20);
			if(!mylist.contains(ran)) {
				mylist.add(ran);
			}
		}
		
		System.out.println(mylist);
		
			

	}

}
